package com.woniuxy.aspectj;

import com.woniuxy.service.RbacManagerService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: 马宇航
 * @Todo: TODO
 * @DateTime: 22/03/28/0028 下午 3:40
 * @Component: 成都蜗牛学苑
 **/
public class TestAsprctJDemo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationAspectJ.xml");
        RbacManagerService rbacManagerService = (RbacManagerService) applicationContext.getBean("rbacManagerServiceImpl");
        int i = rbacManagerService.addInt(2, 5);
        System.out.println("测试类中打印："+i);
    }
}
